package com.wxb.hello.auth.beans;

/**
 * @author Feng Yu
 * @version V1.0
 * @date 2017-06-22
 */
public enum LoginCode {

    SUCC(0, "登录成功"),
    ERROR(1, "系统服务异常"),
    LOCKED(2, "用户已锁定"),
    FAIL(3, "用户名或登录密码错误"),
    NOUSER(4, "用户不存在"),
    BADPW(5, "密码验证失败");

    private int status;
    private String msg;

    LoginCode(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }


    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
